<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>

<html xmlns="http://www.w3.org/1999/xhtml" lang="">

	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>

		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">

		<title><?php echo C('WEB_TITLE');?></title>

		<link rel="stylesheet" type="text/css" href="/Public/css/common.css"/>

		<link rel="stylesheet" type="text/css" href="/Public/js/layui/css/layui.css" media="all"/>

		<link rel="stylesheet" type="text/css" href="/Public/index/css/index.css"/>

		<link rel="stylesheet" type="text/css" href="/Public/index/css/style.css"/>

		<link rel="stylesheet" href="<?php echo C('PC_ICON_HTTP');?>">

		<script type="text/javascript" >

			const moduleName = "<?php echo (MODULE_NAME); ?>";

		</script>

        <link rel="stylesheet" href="/Public/js/viewer/css/viewer.min.css">

		<script type="text/javascript" src="/Public/js/jquery-1.9.1.min.js"></script>

		<script type="text/javascript" src="/Public/js/jquery-ui.min.js"></script>

		<script type="text/javascript" src="/Public/js/cookie/jquery.cookie.js"></script>

		<script type="text/javascript" src="/Public/js/lang/<?php echo (getStrToLower(cookie('think_language'))); ?>.js"></script>

		<script type="text/javascript" src="/Public/js/colorpicker.js"></script>

		<script type="text/javascript" src="/Public/js/layer/layer.js"></script>

		<script type="text/javascript" src="/Public/js/layui/layui.js"></script>

		<script type="text/javascript" src="/Public/js/jquery.nicescroll.js"></script>

		<script type="text/javascript" src="/Public/js/clipboard.min.js"></script>

        <script type="text/javascript" src="/Public/js/feeldesk.js"></script>
<!--
		<script type="text/javascript" src="/Public/js/signature/flashcanvas.js"></script>

		<script type="text/javascript" src="/Public/js/signature/signature.min.js"></script>
-->

        <script type="text/javascript" src="/Public/index/js/index.js"></script>

<!--		<script type="text/javascript" src="/Public/js/Lodop/LodopFuncs.js"></script>-->

		<script type="text/javascript" src="/Public/js/xm-select/xm-select.js"></script>

	</head>

    <body>


    <div class="fd-right-main">

        <div class="fd-body">

            <div class="fd-main">

                <div class="fd-right-top">

                    <span class="crumb">

                        <?php if(CONTROLLER_NAME != 'Census' && CONTROLLER_NAME != 'Ticket'): $href = '/'.CONTROLLER_NAME.'/index'; ?>

                        <?php else: ?>

                            <?php $href = 'javascript:'; endif; ?>

                        <a href="<?php echo ($href); ?>"><?php echo L('SYSTEM');?></a>

                        <i class="layui-icon">&#xe623;</i>

                        <a class="black6"><cite><?php echo getViewName();?></cite></a>

                        

                    </span>

                    

                    

                </div>

                

    <div class="layui-tab member-tab">

        <ul class="layui-tab-title"><li class="layui-this"><?php echo L('PERSONAL_CENTER');?></li><li><?php echo L('EDIT_PASSWORD');?></li></ul>

        <div class="layui-tab-content">

            <div class="layui-tab-item layui-show">

                <div class="feeldesk-form setting-form">

                    <form action="" class="layui-form">

                        <div class="form-content">

                            <div class="form-item">

                                <div class="layui-form-item avatar-item">

                                    <label class="layui-form-label"><?php echo L('AVATAR');?></label>

                                    <div class="layui-input-inline">

                                        <img src="<?php echo ((isset($member["face"]) && ($member["face"] !== ""))?($member["face"]):'/Attachs/face/face.png'); ?>" alt="" id="avatar">

                                        <a href="javascript:" class='upload-btn' id="upload-image"><?php echo L('CLICK_CHANGE');?></a>

                                        <input type="hidden" name="member[face]" value="<?php echo ($member["face"]); ?>">

                                        <input type="hidden" name="member[face_name]" value="<?php echo ($member["face_name"]); ?>">

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('ACCOUNT');?></label>

                                    <span class="member-name"><?php echo ($member["account"]); ?></span>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label">UUID</label>

                                    <div class="layui-input-inline copy-input">

                                        <div class="feeldesk-disabled" id='uuid'><?php echo ($member["employee_id"]); ?></div>

                                    </div>

                                    <span class='copy-btn' onclick="copy('<?php echo L(COPY_SUCCESS);?>')" data-clipboard-action="copy" data-clipboard-target="#uuid"><?php echo L('COPY');?></span>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('NAME');?></label>

                                    <div class="layui-input-inline">

                                        <input type="text" name="member[name]" value="<?php echo ($member["name"]); ?>" class="layui-input" placeholder="<?php echo L('ENTER_NAME');?>" />

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('NICKNAME');?></label>

                                    <div class="layui-input-inline">

                                        <input type="text" name="member[nickname]" value="<?php echo ($member["nickname"]); ?>" class="layui-input" placeholder="<?php echo L('ENTER_NICKNAME');?>" />

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('EMAIL');?></label>

                                    <div class="layui-input-inline">

                                        <input type="text" name="member[email]" value="<?php echo ($member["email"]); ?>" class="layui-input" placeholder="<?php echo L('ENTER_EMAIL');?>" />

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('MOBILE');?></label>

                                    <div class="layui-input-inline">

                                        <input type="text" name="member[mobile]" value="<?php echo ($member["mobile"]); ?>" class="layui-input" placeholder="<?php echo L('MOBILE_NOTE');?>" />

                                    </div>

                                </div>

                            </div>

                            <div class="form-submit">

                                <div class="layui-form-item">

                                    <div class="layui-input-inline">

                                        <a href="javascript:" class="layui-btn layui-btn-normal" id="submitForm"><?php echo L('SUBMIT');?></a>

                                    </div>

                                </div>

                            </div>

                        </div>

                    </form>

                </div>

            </div>

            <div class="layui-tab-item">

                <div class="feeldesk-form setting-form">

                    <form action="<?php echo U('update_password');?>">

                        <div class="form-content">

                            <div class="form-item">

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('OLD_PASSWORD');?></label>

                                    <div class="layui-input-inline">

                                        <input type="password" name="member[old]" placeholder="<?php echo L('ENTER_OLD_PASSWORD');?>" class="layui-input">

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('NEW_PASSWORD');?></label>

                                    <div class="layui-input-inline">

                                        <input type="password" name="member[new]" placeholder="<?php echo L('CODE_NOTE');?>" class="layui-input">

                                    </div>

                                </div>

                                <div class="layui-form-item">

                                    <label class="layui-form-label"><?php echo L('CONFIRM_PASSWORD');?></label>

                                    <div class="layui-input-inline">

                                        <input type="password" name="member[sure]" placeholder="<?php echo L('CODE_NOTE');?>" class="layui-input">

                                    </div>

                                </div>

                            </div>

                            <div class="form-submit">

                                <div class="layui-form-item">

                                    <div class="layui-input-inline">

                                        <a href="javascript:" class="layui-btn layui-btn-normal" id="submitForm2"><?php echo L('SUBMIT');?></a>

                                    </div>

                                </div>

                            </div>

                        </div>

                    </form>

                </div>

            </div>

        </div>

    </div>

    <script type="text/javascript">

        layui.use('upload', function()
        {
            var upload = layui.upload;

            upload.render(
            {
                elem:'#upload-image',

                url: "<?php echo U('Upload/uploadHeadFile');?>",

                before:function()
                {
                    layer.msg("<?php echo L('UPLOADING');?>...", {time: 100000, shade: [0.3, '#393D49'], offset: ['15vw']});
                },
                done: function(data)
                {
                    layer.msg(data.msg,{time:1000,offset:['15vw']});

                    if(data.code == 0)
                    {
                        $('#avatar').attr('src', data.url);

                        $("input[name='member[face]']").val(data.url);

                        $("input[name='member[face_name]']").val(data.face_name);
                    }
                }
            })
        });

    </script>

    <script type="text/javascript" src="/Public/js/submitform.js"></script>




            </div>

        </div>

    </div>

    </body>

</html>